package com.knowif.pojo;

import javax.validation.constraints.NotEmpty;

import org.springframework.validation.annotation.Validated;

@Validated
public class CommentPicture {
    private Integer id;

    @NotEmpty(message = "订单评论id不能为空")
    private Integer orderCommentId;

    private Integer orderNum;

    @NotEmpty(message = "订单图片地址不能为空")
    private String picUrl;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getOrderCommentId() {
        return orderCommentId;
    }

    public void setOrderCommentId(Integer orderCommentId) {
        this.orderCommentId = orderCommentId;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl == null ? null : picUrl.trim();
    }

	@Override
	public String toString() {
		return "CommentPicture [id=" + id + ", orderCommentId=" + orderCommentId + ", orderNum=" + orderNum
				+ ", picUrl=" + picUrl + "]";
	}
}